﻿$(function () {
    $("#records").ggrid({
        url: '/Donations/BucketsGridLoad',
        dataType: 'json',
        columns: [
		    { display: 'Name', name: 'Name', width: 40, sortable: true, align: 'left' },
		    { display: 'IsDefault', name: 'IsDefault', width: 180, sortable: true, align: 'left' },
		    { display: 'AllowRecurring', name: 'AllowRecurring', width: 120, sortable: true, align: 'left' }
		],
        actions: [
		    { idColumn: 'ID', image: '/Content/images/pencil.png', action: '/Donations/CreateBucket/{0}', showConfirm: false },
		],
        defaultSort: "Name",
        defaultSortOrder: "asc",
        usePaging: true,
        pageSize: 10,
        width: 'auto',
        height: 'auto'
    });
});